package com.usian.skill.mq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class MQConfig {
    public static final String QUEUE = "queue";//声明队列的名称
    public static final String SkillQUEUE = "skillqueue";

    //跟进队列的名称指定交换模式
    @Bean
    public Queue queue(){
        return new Queue(QUEUE,true);
    }
    @Bean
    public Queue queue01(){
        return new Queue(SkillQUEUE,true);
    }
}
